package frame.base;

import java.io.Serializable;
import java.util.Date;

public abstract class BaseTo<I> implements Serializable {

    public abstract I getId();

    public abstract void setId(I id);
    /** 备注 说明 */
    private String description;
    /** 有效性 1有效 0无效 */
    private Byte valid = 1;
    /** 创建时间*/
    private Date createTime;
    /** 修改时间*/
    private Date updateTime;

    public String getDescription() {
        return description;
    }

    public BaseTo<I> setDescription(String description) {
        this.description = description;
        return this;
    }

    public Byte getValid() {
        return valid;
    }

    public BaseTo<I> setValid(Byte valid) {
        this.valid = valid;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public BaseTo<I> setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public BaseTo<I> setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }
}
